#include "couriernew12.h"
#include <nds.h>

using namespace WoopsiUI;

static const u16 CourierNew12_glyphdata[530] = {
/* '!' */	0xF900,
/* '"' */	0xDEE5,0x2000,0x0000,0x0000,0x0000,
/* '#' */	0x2494,0xBF49,0x2FD2,0x9240,0x0000,0x0000,
/* '$' */	0x2798,0x619E,0x2200,0x0000,
/* '%' */	0x4510,0x3E08,0xA200,0x0000,0x0000,
/* '&' */	0x01D0,0x8656,0x4F00,0x0000,0x0000,
/* ''' */	0xF000,
/* '(' */	0x5AAA,0x5000,
/* ')' */	0xA555,0xA000,
/* '*' */	0x27C8,0xA500,0x0000,0x0000,0x0000,
/* '+' */	0x0020,0x408F,0xE204,0x0800,0x0000,0x0000,0x0000,
/* ',' */	0x0000,0x1AD0,0x0000,
/* '-' */	0x0000,0x00FC,0x0000,0x0000,0x0000,0x0000,
/* '.' */	0x000F,0x0000,
/* '/' */	0x0844,0x2211,0x0884,0x0000,0x0000,
/* '0' */	0x7A18,0x6186,0x185E,0x0000,0x0000,0x0000,
/* '1' */	0x2708,0x4210,0x9F00,0x0000,0x0000,
/* '2' */	0x7442,0x2222,0x3F00,0x0000,0x0000,
/* '3' */	0x7442,0x6086,0x2E00,0x0000,0x0000,
/* '4' */	0x18A4,0x92FC,0x2087,0x0000,0x0000,0x0000,
/* '5' */	0x7D04,0x1E04,0x185E,0x0000,0x0000,0x0000,
/* '6' */	0x3A21,0xE8C6,0x2E00,0x0000,0x0000,
/* '7' */	0xFE10,0x4208,0x4104,0x0000,0x0000,0x0000,
/* '8' */	0x7A18,0x5E86,0x185E,0x0000,0x0000,0x0000,
/* '9' */	0x7A18,0x617C,0x10BC,0x0000,0x0000,0x0000,
/* ':' */	0x0F0F,0x0000,
/* ';' */	0x01B0,0x1E80,0x0000,
/* '<' */	0x0011,0x88C0,0x8181,0x0000,0x0000,0x0000,
/* '=' */	0x000F,0xC0FC,0x0000,0x0000,0x0000,0x0000,
/* '>' */	0x0206,0x040C,0x4620,0x0000,0x0000,0x0000,
/* '?' */	0x7442,0x1110,0x0C00,0x0000,0x0000,
/* '@' */	0x7463,0x3AD6,0x708B,0x8000,0x0000,
/* 'A' */	0x3020,0xA142,0x8711,0x7700,0x0000,0x0000,0x0000,
/* 'B' */	0xF914,0x5E45,0x147E,0x0000,0x0000,0x0000,
/* 'C' */	0x3D18,0x2082,0x044E,0x0000,0x0000,0x0000,
/* 'D' */	0xF124,0x5145,0x14BC,0x0000,0x0000,0x0000,
/* 'E' */	0xFD15,0x1C51,0x047F,0x0000,0x0000,0x0000,
/* 'F' */	0xFD15,0x1C51,0x0438,0x0000,0x0000,0x0000,
/* 'G' */	0x3C8A,0x0408,0xF091,0x1C00,0x0000,0x0000,0x0000,
/* 'H' */	0xEE89,0x13E4,0x4891,0x7700,0x0000,0x0000,0x0000,
/* 'I' */	0xF908,0x4210,0x9F00,0x0000,0x0000,
/* 'J' */	0x3C20,0x828A,0x289C,0x0000,0x0000,0x0000,
/* 'K' */	0xEE89,0x2287,0x0911,0x7300,0x0000,0x0000,0x0000,
/* 'L' */	0xE104,0x1041,0x147F,0x0000,0x0000,0x0000,
/* 'M' */	0xEED9,0xB2A5,0x4891,0x7700,0x0000,0x0000,0x0000,
/* 'N' */	0xE762,0x5252,0x4A4A,0x46E6,0x0000,0x0000,0x0000,0x0000,
/* 'O' */	0x388A,0x0C18,0x3051,0x1C00,0x0000,0x0000,0x0000,
/* 'P' */	0xF914,0x5179,0x0438,0x0000,0x0000,0x0000,
/* 'Q' */	0x388A,0x0C18,0x3051,0x1C3E,0x0000,0x0000,0x0000,
/* 'R' */	0xF889,0x1227,0x8911,0x7100,0x0000,0x0000,0x0000,
/* 'S' */	0x7638,0x1E04,0x1C6E,0x0000,0x0000,0x0000,
/* 'T' */	0xFF24,0x4081,0x0204,0x1C00,0x0000,0x0000,0x0000,
/* 'U' */	0xEE89,0x1224,0x4891,0x1C00,0x0000,0x0000,0x0000,
/* 'V' */	0xE742,0x4224,0x2424,0x1818,0x0000,0x0000,0x0000,0x0000,
/* 'W' */	0xEE89,0x12A5,0x4A95,0x1400,0x0000,0x0000,0x0000,
/* 'X' */	0xEE88,0xA081,0x0511,0x7700,0x0000,0x0000,0x0000,
/* 'Y' */	0xEE88,0xA141,0x0204,0x1C00,0x0000,0x0000,0x0000,
/* 'Z' */	0xFC44,0x4222,0x3F00,0x0000,0x0000,
/* '[' */	0xF249,0x249C,0x0000,
/* '\' */	0x8844,0x2221,0x1100,0x0000,
/* ']' */	0xE492,0x493C,0x0000,
/* '^' */	0x2115,0x1000,0x0000,0x0000,0x0000,
/* '_' */	0x0000,0x0000,0x0000,0x0000,0x0000,0x00FF,0x0000,0x0000,
/* '`' */	0x9000,0x0000,
/* 'a' */	0x0001,0xE427,0xD0A3,0x3B00,0x0000,0x0000,0x0000,
/* 'b' */	0xC081,0x7314,0x2858,0xEE00,0x0000,0x0000,0x0000,
/* 'c' */	0x0007,0x6382,0x085E,0x0000,0x0000,0x0000,
/* 'd' */	0x0C09,0xD468,0x50A3,0x3B00,0x0000,0x0000,0x0000,
/* 'e' */	0x0007,0xA1FE,0x081F,0x0000,0x0000,0x0000,
/* 'f' */	0x1C8F,0xC820,0x823F,0x0000,0x0000,0x0000,
/* 'g' */	0x0001,0xDC68,0x50A3,0x3A04,0xF000,0x0000,0x0000,
/* 'h' */	0xC081,0x6324,0x4891,0x7700,0x0000,0x0000,0x0000,
/* 'i' */	0x2038,0x4210,0x9F00,0x0000,0x0000,
/* 'j' */	0x101E,0x1084,0x210F,0x8000,0x0000,
/* 'k' */	0xC081,0x7A47,0x0A12,0x6700,0x0000,0x0000,0x0000,
/* 'l' */	0x6108,0x4210,0x9F00,0x0000,0x0000,
/* 'm' */	0x0000,0xD26D,0x4949,0x49ED,0x0000,0x0000,0x0000,0x0000,
/* 'n' */	0x0003,0x6324,0x4891,0x7700,0x0000,0x0000,0x0000,
/* 'o' */	0x0007,0xA186,0x185E,0x0000,0x0000,0x0000,
/* 'p' */	0x000D,0x9945,0x145E,0x4380,0x0000,0x0000,
/* 'q' */	0x0001,0xDC68,0x50A3,0x3A04,0x1C00,0x0000,0x0000,
/* 'r' */	0x000D,0xD841,0x043E,0x0000,0x0000,0x0000,
/* 's' */	0x0007,0xE178,0x187E,0x0000,0x0000,0x0000,
/* 't' */	0x010F,0x9041,0x044E,0x0000,0x0000,0x0000,
/* 'u' */	0x0003,0x3224,0x4893,0x1B00,0x0000,0x0000,0x0000,
/* 'v' */	0x0000,0xE742,0x2424,0x1818,0x0000,0x0000,0x0000,0x0000,
/* 'w' */	0x0003,0xBA25,0x4A95,0x1400,0x0000,0x0000,0x0000,
/* 'x' */	0x000C,0xD230,0xC4B3,0x0000,0x0000,0x0000,
/* 'y' */	0x0003,0xBA24,0x450A,0x0810,0xE000,0x0000,0x0000,
/* 'z' */	0x003F,0x2222,0x3F00,0x0000,0x0000,
/* '{' */	0x2928,0x9220,0x0000,
/* '|' */	0xFFC0,
/* '}' */	0x8922,0x9280,0x0000,
/* '~' */	0x0000,0x1998,0x0000,0x0000,0x0000,0x0000,
/* 0x7F */	0xFE18,0x6186,0x1861,0x861F,0xC000,0x0000,
};

static const u16 CourierNew12_offset[95] = {
    0,    1,    6,   12,   16,   21,   26,   27,   29,   31,   36,   43,   46,   52,   54,   59,
   65,   70,   75,   80,   86,   92,   97,  103,  109,  115,  117,  120,  126,  132,  138,  143,
  148,  155,  161,  167,  173,  179,  185,  192,  199,  204,  210,  217,  223,  230,  238,  245,
  251,  258,  265,  271,  278,  285,  293,  300,  307,  314,  319,  322,  326,  329,  334,  342,
  344,  351,  358,  364,  371,  377,  383,  390,  397,  402,  407,  414,  419,  427,  434,  440,
  446,  453,  459,  465,  471,  478,  486,  493,  499,  506,  511,  514,  515,  518,  524
};

static const u8 CourierNew12_width[95] = {
 1, 5, 6, 4, 5, 5, 1, 2, 2, 5, 7, 3, 6, 2, 5, 6,
 5, 5, 5, 6, 6, 5, 6, 6, 6, 2, 3, 6, 6, 6, 5, 5,
 7, 6, 6, 6, 6, 6, 7, 7, 5, 6, 7, 6, 7, 8, 7, 6,
 7, 7, 6, 7, 7, 8, 7, 7, 7, 5, 3, 4, 3, 5, 8, 2,
 7, 7, 6, 7, 6, 6, 7, 7, 5, 5, 7, 5, 8, 7, 6, 6,
 7, 6, 6, 6, 7, 8, 7, 6, 7, 5, 3, 1, 3, 6, 6
};

CourierNew12::CourierNew12(u8 fixedWidth) : PackedFont1 (
	33,
	127,
	CourierNew12_glyphdata,
	CourierNew12_offset,
	CourierNew12_width,
	16,
	4,
	7,
	8
) {
	if (fixedWidth) setFontWidth(fixedWidth);
};
